<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.18"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>NINJA: DistanceReader Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">NINJA
   &#160;<span id="projectnumber">2.x</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.18 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('class_distance_reader.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="#pub-static-attribs">Static Public Attributes</a> &#124;
<a href="class_distance_reader-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">DistanceReader Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="_distance_reader_8hpp_source.html">DistanceReader.hpp</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a72990b5a7a716c51bc9800babb1ad6ed"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_distance_reader.html#a72990b5a7a716c51bc9800babb1ad6ed">DistanceReader</a> (std::string fileName)</td></tr>
<tr class="separator:a72990b5a7a716c51bc9800babb1ad6ed"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a47ba3dd618c5fd838ff01a656a5c9cd9"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_distance_reader.html#a47ba3dd618c5fd838ff01a656a5c9cd9">DistanceReader</a> (<a class="el" href="class_distance_calculator.html">DistanceCalculator</a> *<a class="el" href="class_distance_reader.html#ac922b8b974d75860b98ba760f04ba478">distCalc</a>, int <a class="el" href="class_distance_reader.html#a19898d2a4cad45e3dca47eaad39a0642">K</a>, int <a class="el" href="class_distance_reader.html#af0621ae213eb74f3edbc578434d6b924">threads</a>)</td></tr>
<tr class="separator:a47ba3dd618c5fd838ff01a656a5c9cd9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afb8cba60a6bcf7f4814d297be76b9cb5"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_distance_reader.html#afb8cba60a6bcf7f4814d297be76b9cb5">~DistanceReader</a> ()</td></tr>
<tr class="separator:afb8cba60a6bcf7f4814d297be76b9cb5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afecfe4aef179860eacda30ed521e7573"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_distance_reader.html#afecfe4aef179860eacda30ed521e7573">read</a> (std::string **names, int **distances)</td></tr>
<tr class="separator:afecfe4aef179860eacda30ed521e7573"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a556884960e4de69a39078d2ef642f5a1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_distance_reader.html#a556884960e4de69a39078d2ef642f5a1">readAndWrite</a> (std::string **names, FILE *outFile)</td></tr>
<tr class="separator:a556884960e4de69a39078d2ef642f5a1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac6c565a94488665715dac977d32353a2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_distance_reader.html#ac6c565a94488665715dac977d32353a2">write</a> (FILE *outFile, double **distances, std::string **names) const</td></tr>
<tr class="separator:ac6c565a94488665715dac977d32353a2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:af0621ae213eb74f3edbc578434d6b924"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_distance_reader.html#af0621ae213eb74f3edbc578434d6b924">threads</a></td></tr>
<tr class="separator:af0621ae213eb74f3edbc578434d6b924"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a19898d2a4cad45e3dca47eaad39a0642"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_distance_reader.html#a19898d2a4cad45e3dca47eaad39a0642">K</a></td></tr>
<tr class="separator:a19898d2a4cad45e3dca47eaad39a0642"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a30409ee7871055a305fba2d5b707a015"><td class="memItemLeft" align="right" valign="top">FILE *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_distance_reader.html#a30409ee7871055a305fba2d5b707a015">r</a></td></tr>
<tr class="separator:a30409ee7871055a305fba2d5b707a015"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aefbac73f36b1db926e158e1879f4c279"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_distance_reader.html#aefbac73f36b1db926e158e1879f4c279">fileSize</a></td></tr>
<tr class="separator:aefbac73f36b1db926e158e1879f4c279"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac922b8b974d75860b98ba760f04ba478"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_distance_calculator.html">DistanceCalculator</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_distance_reader.html#ac922b8b974d75860b98ba760f04ba478">distCalc</a></td></tr>
<tr class="separator:ac922b8b974d75860b98ba760f04ba478"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-attribs"></a>
Static Public Attributes</h2></td></tr>
<tr class="memitem:ac55d0029e686fdfcc5b260877c422e81"><td class="memItemLeft" align="right" valign="top">static const int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_distance_reader.html#ac55d0029e686fdfcc5b260877c422e81">numPages</a> = 10</td></tr>
<tr class="separator:ac55d0029e686fdfcc5b260877c422e81"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a72990b5a7a716c51bc9800babb1ad6ed"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a72990b5a7a716c51bc9800babb1ad6ed">&#9670;&nbsp;</a></span>DistanceReader() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">DistanceReader::DistanceReader </td>
          <td>(</td>
          <td class="paramtype">std::string&#160;</td>
          <td class="paramname"><em>fileName</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a47ba3dd618c5fd838ff01a656a5c9cd9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a47ba3dd618c5fd838ff01a656a5c9cd9">&#9670;&nbsp;</a></span>DistanceReader() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">DistanceReader::DistanceReader </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_distance_calculator.html">DistanceCalculator</a> *&#160;</td>
          <td class="paramname"><em>distCalc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>K</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>threads</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="afb8cba60a6bcf7f4814d297be76b9cb5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afb8cba60a6bcf7f4814d297be76b9cb5">&#9670;&nbsp;</a></span>~DistanceReader()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">DistanceReader::~DistanceReader </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="afecfe4aef179860eacda30ed521e7573"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afecfe4aef179860eacda30ed521e7573">&#9670;&nbsp;</a></span>read()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void DistanceReader::read </td>
          <td>(</td>
          <td class="paramtype">std::string **&#160;</td>
          <td class="paramname"><em>names</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int **&#160;</td>
          <td class="paramname"><em>distances</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a556884960e4de69a39078d2ef642f5a1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a556884960e4de69a39078d2ef642f5a1">&#9670;&nbsp;</a></span>readAndWrite()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void DistanceReader::readAndWrite </td>
          <td>(</td>
          <td class="paramtype">std::string **&#160;</td>
          <td class="paramname"><em>names</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FILE *&#160;</td>
          <td class="paramname"><em>outFile</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="ac6c565a94488665715dac977d32353a2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac6c565a94488665715dac977d32353a2">&#9670;&nbsp;</a></span>write()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void DistanceReader::write </td>
          <td>(</td>
          <td class="paramtype">FILE *&#160;</td>
          <td class="paramname"><em>outFile</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double **&#160;</td>
          <td class="paramname"><em>distances</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::string **&#160;</td>
          <td class="paramname"><em>names</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="ac922b8b974d75860b98ba760f04ba478"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac922b8b974d75860b98ba760f04ba478">&#9670;&nbsp;</a></span>distCalc</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_distance_calculator.html">DistanceCalculator</a>* DistanceReader::distCalc</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="aefbac73f36b1db926e158e1879f4c279"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aefbac73f36b1db926e158e1879f4c279">&#9670;&nbsp;</a></span>fileSize</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t DistanceReader::fileSize</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a19898d2a4cad45e3dca47eaad39a0642"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a19898d2a4cad45e3dca47eaad39a0642">&#9670;&nbsp;</a></span>K</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int DistanceReader::K</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="ac55d0029e686fdfcc5b260877c422e81"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac55d0029e686fdfcc5b260877c422e81">&#9670;&nbsp;</a></span>numPages</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const int DistanceReader::numPages = 10</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a30409ee7871055a305fba2d5b707a015"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a30409ee7871055a305fba2d5b707a015">&#9670;&nbsp;</a></span>r</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">FILE* DistanceReader::r</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="af0621ae213eb74f3edbc578434d6b924"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af0621ae213eb74f3edbc578434d6b924">&#9670;&nbsp;</a></span>threads</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int DistanceReader::threads</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>NINJA/<a class="el" href="_distance_reader_8hpp_source.html">DistanceReader.hpp</a></li>
<li>NINJA/<a class="el" href="_distance_reader_8cpp.html">DistanceReader.cpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_distance_reader.html">DistanceReader</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.18 </li>
  </ul>
</div>
</body>
</html>
